home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / emsif24a.zip / EXMAKETC < prev    next >
Text File  |  1993-06-24  |  6KB  |  177 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR EMSTEST TESTER/EXAMPLE PROGRAM FOR EMSIF
  3. # TURBO C, TURBO C++
  4. # 06/24/93
  5. #
  6. #   This is an example makefile for Turbo C[++], to make the EMSTEST
  7. # tester/example program in any of the six supported memory models. It is
  8. # compatible with the MAKE utility provided with Turbo C 2.0 (MAKE version
  9. # 2.0). As supplied, it is set up for Turbo C 2.0. It is also set up to use
  10. # the inline-assembly versions of the functions in TESTUTIL.C.
  11. #
  12. #   The "-DNO_FFUNC" option on the "CFLAGS" line below is necessary because
  13. # Borland compilers before BC++ 2.0 did not have the functions _fmemcmp() and
  14. # _fmemset(); defining this symbol causes EMSTEST to use internal replacements
  15. # for these functions. These compilers also require an external assembler
  16. # (generally TASM, although Turbo C 1.5 and before used MASM) to support
  17. # in-line assembly code. If you have the required assembler and wish to use
  18. # the in-line assembly code (it improves execution speed significantly), you
  19. # do not need to make any changes. If you do not have the required assembler
  20. # or do not wish to use the in-line assembly code, simply remove "-DINLINE_ASM"
  21. # from the line that begins "CFLAGS", and remove "-B" from the line that
  22. # begins "CFLAGS2".
  23. #
  24. #   Before using this makefile, make sure that the Borland MAKE utility and
  25. # the appropriate command-line compiler and linker are in your path. The four
  26. # source files (EMSTEST.C, EMSTEST2.C, EMSTEST3.C, and TESTUTIL.C), the header
  27. # files (EMSTEST.H, TESTUTIL.H, and EMSIF.H), the appropriate library or
  28. # libraries (EMSIF*.LIB), and STACK.OBJ (if making the tiny-model example)
  29. # should all be in the current directory. Make sure that the line beginning
  30. # "LIBS" below contains the path to the standard objects and libraries (for
  31. # example, if the standard libraries are in c:\tc\lib, then the line should
  32. # read "LIBS = c:\tc\lib").
  33. #
  34. #   To use the makefile, type "make -fexmaketc target", where 'target' is
  35. # one or more of tiny, small, medium, compact, large, or huge, separated by
  36. # spaces. For example, "make -fexmaketc tiny" would make the tiny-model
  37. # example and "make -fexmaketc small large" would make the small- and large-
  38. # model examples. "make -fexmaketc" will make the test programs for all
  39. # memory models.
  40. #
  41.  
  42. CC    = tcc
  43. CFLAGS    = -c -d -DINLINE_ASM -DNO_FFUNC
  44. CFLAGS2 = -B
  45.  
  46. LINK    = tlink
  47. LF    = /c /x
  48.  
  49. LIBS    = c:\tc\lib
  50.  
  51.  
  52. all:        tiny small medium compact large huge
  53.  
  54. tiny:        temststa temststb temststc
  55.  
  56. small:        semstest
  57.  
  58. medium:        memstest
  59.  
  60. compact:    cemstest
  61.  
  62. large:        lemstest
  63.  
  64. huge:        hemstest
  65.  
  66.  
  67. temststa.obj:    emstest.c emstest.h testutil.h
  68.     $(CC) $(CFLAGS) -mt -DPASS1 -o$< emstest.c
  69.  
  70. temststb.obj:    emstest.c emstest.h testutil.h
  71.     $(CC) $(CFLAGS) -mt -DPASS2 -o$< emstest.c
  72.  
  73. temststc.obj:    emstest.c emstest.h testutil.h
  74.     $(CC) $(CFLAGS) -mt -DPASS3 -o$< emstest.c
  75.  
  76. semstest.obj:    emstest.c emstest.h testutil.h
  77.         $(CC) $(CFLAGS) -ms -o$< emstest.c
  78.  
  79. memstest.obj:    emstest.c emstest.h testutil.h
  80.         $(CC) $(CFLAGS) -mm -o$< emstest.c
  81.  
  82. cemstest.obj:    emstest.c emstest.h testutil.h
  83.         $(CC) $(CFLAGS) -mc -o$< emstest.c
  84.  
  85. lemstest.obj:    emstest.c emstest.h testutil.h
  86.         $(CC) $(CFLAGS) -ml -o$< emstest.c
  87.  
  88. hemstest.obj:    emstest.c emstest.h testutil.h
  89.         $(CC) $(CFLAGS) -mh -o$< emstest.c
  90.  
  91. temstst2.obj:    emstest2.c emstest.h testutil.h
  92.     $(CC) $(CFLAGS) -mt -o$< emstest2.c
  93.  
  94. semstst2.obj:    emstest2.c emstest.h testutil.h
  95.     $(CC) $(CFLAGS) -ms -o$< emstest2.c
  96.  
  97. memstst2.obj:    emstest2.c emstest.h testutil.h
  98.     $(CC) $(CFLAGS) -mm -o$< emstest2.c
  99.  
  100. cemstst2.obj:    emstest2.c emstest.h testutil.h
  101.     $(CC) $(CFLAGS) -mc -o$< emstest2.c
  102.  
  103. lemstst2.obj:    emstest2.c emstest.h testutil.h
  104.     $(CC) $(CFLAGS) -ml -o$< emstest2.c
  105.  
  106. hemstst2.obj:    emstest2.c emstest.h testutil.h
  107.     $(CC) $(CFLAGS) -mh -o$< emstest2.c
  108.  
  109. temstst3.obj:    emstest3.c emstest.h testutil.h
  110.     $(CC) $(CFLAGS) -mt -o$< emstest3.c
  111.  
  112. semstst3.obj:    emstest3.c emstest.h testutil.h
  113.     $(CC) $(CFLAGS) -ms -o$< emstest3.c
  114.  
  115. memstst3.obj:    emstest3.c emstest.h testutil.h
  116.     $(CC) $(CFLAGS) -mm -o$< emstest3.c
  117.  
  118. cemstst3.obj:    emstest3.c emstest.h testutil.h
  119.     $(CC) $(CFLAGS) -mc -o$< emstest3.c
  120.  
  121. lemstst3.obj:    emstest3.c emstest.h testutil.h
  122.     $(CC) $(CFLAGS) -ml -o$< emstest3.c
  123.  
  124. hemstst3.obj:    emstest3.c emstest.h testutil.h
  125.     $(CC) $(CFLAGS) -mh -o$< emstest3.c
  126.  
  127. ttstutil.obj:    testutil.c testutil.h
  128.         $(CC) $(CFLAGS) $(CFLAGS2) -mt -o$< testutil.c
  129.  
  130. ststutil.obj:    testutil.c testutil.h
  131.         $(CC) $(CFLAGS) $(CFLAGS2) -ms -o$< testutil.c
  132.  
  133. mtstutil.obj:    testutil.c testutil.h
  134.         $(CC) $(CFLAGS) $(CFLAGS2) -mm -o$< testutil.c
  135.  
  136. ctstutil.obj:    testutil.c testutil.h
  137.         $(CC) $(CFLAGS) $(CFLAGS2) -mc -o$< testutil.c
  138.  
  139. ltstutil.obj:    testutil.c testutil.h
  140.         $(CC) $(CFLAGS) $(CFLAGS2) -ml -o$< testutil.c
  141.  
  142. htstutil.obj:    testutil.c testutil.h
  143.         $(CC) $(CFLAGS) $(CFLAGS2) -mh -o$< testutil.c
  144.  
  145.  
  146. temststa:    temststa.obj ttstutil.obj stack.obj emsifs.lib
  147.     $(LINK) $(LF) $(LIBS)\c0t temststa ttstutil stack, temststa, , \
  148.         $(LIBS)\cs emsifs
  149.  
  150. temststb:    temststb.obj temstst2.obj ttstutil.obj stack.obj emsifs.lib
  151.     $(LINK) $(LF) $(LIBS)\c0t temststb temstst2 ttstutil stack, \
  152.         temststb, , $(LIBS)\cs emsifs
  153.  
  154. temststc:    temststc.obj temstst3.obj ttstutil.obj stack.obj emsifs.lib
  155.     $(LINK) $(LF) $(LIBS)\c0t temststc temstst3 ttstutil stack, \
  156.         temststc, , $(LIBS)\cs emsifs
  157.  
  158. semstest:    semstest.obj semstst2.obj semstst3.obj ststutil.obj emsifs.lib
  159.     $(LINK) $(LF) $(LIBS)\c0s semstest semstst2 semstst3 ststutil, \
  160.         semstest, , $(LIBS)\cs emsifs
  161.  
  162. memstest:    memstest.obj memstst2.obj memstst3.obj mtstutil.obj emsifm.lib
  163.     $(LINK) $(LF) $(LIBS)\c0m memstest memstst2 memstst3 mtstutil, \
  164.         memstest, , $(LIBS)\cm emsifm
  165.  
  166. cemstest:    cemstest.obj cemstst2.obj cemstst3.obj ctstutil.obj emsifc.lib
  167.     $(LINK) $(LF) $(LIBS)\c0c cemstest cemstst2 cemstst3 ctstutil, \
  168.         cemstest, , $(LIBS)\cc emsifc
  169.  
  170. lemstest:    lemstest.obj lemstst2.obj lemstst3.obj ltstutil.obj emsifl.lib
  171.     $(LINK) $(LF) $(LIBS)\c0l lemstest lemstst2 lemstst3 ltstutil, \
  172.         lemstest, , $(LIBS)\cl emsifl
  173.  
  174. hemstest:    hemstest.obj hemstst2.obj hemstst3.obj htstutil.obj emsifh.lib
  175.     $(LINK) $(LF) $(LIBS)\c0h hemstest hemstst2 hemstst3 htstutil, \
  176.         hemstest, , $(LIBS)\ch emsifh
  177.